package com.woniu.crowd.service;

import com.alipay.api.AlipayApiException;
import com.woniu.crowd.infra.model.CrowdOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.crowd.service.dto.CrowdOrderDto;
import com.woniu.crowd.service.dto.CrowdfundingProductsDto;
import com.woniu.crowd.service.form.CreatCrowdOrderForm;
import com.woniu.crowd.service.form.PartakeCrowdForm;

import java.io.UnsupportedEncodingException;

/**
 * <p>
 * 众筹订单表 服务类
 * </p>
 *
 * @author Lucas
 * @since 2022-11-26
 */
public interface CrowdOrderService extends IService<CrowdOrder> {

    CrowdOrder createCrowdOrder(CreatCrowdOrderForm creatCrowdOrderForm);

    CrowdOrderDto userPartakeCrowd(PartakeCrowdForm partakeCrowdForm) throws UnsupportedEncodingException, AlipayApiException;

    String crowdPay(String crowdOrderNum) throws Exception;

    void setPayOk(String message);
}
